package com.huynhchihieu.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.huynhchihieu.dao.PersonDAO;
import com.huynhchihieu.domain.Person;

@Service
@Transactional
public class PersonServiceImpl implements PersonService{

	@Autowired
	PersonDAO personDAO;
	
	public PersonDAO getPersonDAO() {
		return personDAO;
	}

	
	public void setPersonDAO(PersonDAO personDAO) {
		this.personDAO = personDAO;
	}

	public void insertPerson(Person person) {
		personDAO.insertPerson(person);
	}

}
